package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EBaseDock is a Querydsl bean type
 */
@Label("BaseDock")
public class EBaseDock extends AbstractIdEntity<String> {

    private static final long serialVersionUID =7522893272934L;    
    @Label("代码")
    @Size(max=45)
    private String code;

    @Label("备注")
    @Size(max=256)
    private String comments;

    @NotNull(groups={UpdateCheck.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("位置")
    @Size(max=45)
    private String location;

    @Label("码头名称")
    @Size(max=45)
    private String name;

    @Label("portName")
    @Size(max=255)
    private String portName;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public String toString() {
         return String.format("EBaseDock { code : %s,comments : %s,id : %s,location : %s,name : %s,portName : %s }",code,comments,id,location,name,portName);
    }

}

